export const AdvOptions = {
  border: true,
  index: true,
  indexLabel: "序号",
  stripe: true,
  menuAlign: "center",
  align: "center",
  searchMenuSpan: 6,
  searchBtnText: "查询",
  emptyBtnText: "重置",
  editBtn: false,
  delBtn: false,
  align: "center",
  viewBtn: false,
  addBtn: false,
  columnBtn: false,
  searchLabelWidth: 80,
  dialogEscape: false,
  dialogClickModal: false,
  menuWidth: 140,
  menu: false,
  column: [
    {
      prop: "advertisingType",
      type: "select",
      search: true,
      searchslot: true,
      hide: true,
      label: "类型"
    },
    {
      label: "签约日期",
      type: "date",
      prop: "signDate",
      search: true,
      format: "yyyy-MM-dd",
      valueFormat: "yyyy-MM-dd"
    },
    {
      label: "公司名称",
      search: true,
      prop: "companyName"
    },
    {
      label: "位置",
      prop: "advertisingLocation"
    },
    {
      label: "数量",
      prop: "advertisingCount",
      hide: true
    },
    {
      label: "长",
      prop: "advertisingLength",
      hide: true
    },
    {
      label: "宽",
      prop: "advertisingWidth",
      hide: true
    },
    {
      label: "面积(㎡)",
      prop: "advertisingArea",
      formatter: function(row, value, label, column) {
        if (value || value == 0) {
          return parseFloat(value).toFixed(2);
        } else {
          return value;
        }
      }
    },
    {
      label: "租金单价：元/㎡/月",
      prop: "advertisingUnitPrice"
    },
    {
      label: "租赁期限(起)",
      prop: "rentStartTime"
    },
    {
      label: "租赁期限(止)",
      prop: "rentEndTime"
    },
    {
      label: "租金总额(元)",
      prop: "totalAmount"
    },
    {
      label: "优惠价格",
      prop: "advertisingPreferentialPrice"
    }
  ]
};
